﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Entities.PBKT;

namespace WindowsForms.PBKT
{
	public partial class FormDoiTuyenTimKiem : Form
	{
		public FormDoiTuyenTimKiem()
		{
			InitializeComponent();
		}
		List<DoiTuyen> listDT = null;
		private void txtTenDT_TextChanged(object sender, EventArgs e)
		{
			listDT = DoiTuyen.Objects.Find(x => x.TenDT.Contains(txtTenDT.Text)).ToList();
		}

		private void btnFind_Click(object sender, EventArgs e)
		{
			if (listDT != null)
				dgvDSDoiTuyen.DataSource = listDT;
		}




	}
}
